<?php
/**
 * Created by PhpStorm.
 * User: sunshubo
 * Date: 2017/11/16
 * Time: 22:20
 */

class AddTeacher_control extends MY_Controller
{
    function index()
    {
        $this->load->model('manage/add_teacher_model', 'teacher');
        $body = $_POST;
        if (!$body) {
            $body = $this->input->raw_input_stream;
        }
        echo $this->teacher->add_teacher($body);
    }
}